/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DAO.Firebird;

import BancoDeDados.ConexaoFirebird;
import Biblioteca.VerificacaoErros;
import java.sql.Statement;
import javax.swing.JOptionPane;

/**
 * DAOConexaoFirebird
 * 
 * Versao 1.0
 * 
 * Data Criação 12/03/2014
 *
 * @author Igor
 */
public abstract class DAOConexaoFirebird {
    //Atributos
    protected ConexaoFirebird con = null;
    protected Statement select = null;

    //Construtor
    public DAOConexaoFirebird() {
        try {
            this.con = ConexaoFirebird.getInstance();//new ConexaoFirebird();
            this.con.startDB();
            this.select = con.getStm();
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, VerificacaoErros.retornaMensagemErro(e), "Erro!", JOptionPane.ERROR_MESSAGE);
        }
    }
}
